package com.yvan.dsf;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "yvan.dsf")
public class DsfProperties {
    /**
     * dubbo application name
     */
    private String app;
    /**
     * dubbo registry address
     */
    private String registry;
    /**
     * dubbo monitor address
     */
    private String monitor;

    /**
     * dubbo listen port, default 20800
     */
    private Integer port = 20800;
    /**
     * dubbo thread count, default 200
     */
    private Integer threads = 200;

    /**
     * 绕过注册中心，强制指定 provider 地址
     */
    private String url ="";

    /**
     * dubbo owner
     */
    private String owner;

    /**
     * dubbo debugger,指定application用于调试
     */
    private String debugger;

    private String group;

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getApp() {
        return app;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public String getRegistry() {
        return registry;
    }

    public void setRegistry(String registry) {
        this.registry = registry;
    }

    public String getMonitor() {
        return monitor;
    }

    public void setMonitor(String monitor) {
        this.monitor = monitor;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Integer getThreads() {
        return threads;
    }

    public void setThreads(Integer threads) {
        this.threads = threads;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getDebugger() {
        return debugger;
    }

    public void setDebugger(String debugger) {
        this.debugger = debugger;
    }
}
